/* Styles for the proyectos.html page */

.hero.project-hero {
  background: url('https://cdn.glitch.global/29efe4f6-b226-490d-9792-5075025a0bfa/img%2Fumberto-jXd2FSvcRr8-unsplash.jpg?v=1745979189790') no-repeat center center fixed;
  background-size: cover;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 117, 188, 0.3), rgba(55, 89, 136, 0.5));
  z-index: 0;
}

.project-hero .container {
  position: relative;
  z-index: 1;
}

.project-hero h1,
.project-hero p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Projects filter */
.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

/* Projects grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0 3rem;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  transform: translateY(20%);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 0.8rem;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-description {
  opacity: 1;
  transform: translateY(0);
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}
